import Array._

object OperateArray{

	def main(args:Array[String]){
		var myList1 = Array(1.9,2.9,3.4,3.5)	
		var myList2 = Array(8.9,7.9,0.4,1.5)
		
		var myList3 = concat(myList1,myList2)
		
		for(x<-myList3){
		  println(x)		
		}

		var myList4 = range(10,20,2) 		//从10到20的数组，间隔2
		var myList5 = range(10,20) 		//从10到20的数组，间隔1

		for(x<-myList4){
		  print(" "+x)				//10 12 14 16 18
		}

		  println()	
		for(x<-myList5){
		  print(" "+x)				//10 11 12 13 14 15 16 17 18 19
		}
	}
}
